{extend name="admin/common/base" /}
{block name="content"}
<div class="row">
<form class="form-horizontal" action="{:url('admin/lang/index',['act'=>'save'])}" method="post">
<table class="table table-striped table-bordered">
<thead>
    <tr>
        <th class="col-xs-1">ID</th>
        <th class="col-xs-4">{:lang('中文')}</th>
        <th class="col-xs-7">{:lang('显示')}</th>
    </tr>
</thead>
<tbody>

{volist name="langs" id="v"}
<tr>
    <td>{$i}</td>
    <td>{$key}</td>
    <td><input name="langs[{$key}]" value="{$v}" class="col-xs-12"/></td>
</tr>
{/volist}

</tbody>
</table>
<div class="col-md-offset-2 col-md-9">
    <button id="submit" class="btn btn-info" type="submit">
        <i class="icon-ok bigger-110"></i>
        {:lang('提交')}
    </button>

    &nbsp; &nbsp; &nbsp;
    <button class="btn" type="reset">
        <i class="icon-undo bigger-110"></i>
        {:lang('重置')}
    </button>
    &nbsp; &nbsp; &nbsp;
    <button id="restore" class="btn" type="button">
        <i class="icon-undo bigger-110"></i>
        {:lang('还原')}
    </button>
</div>
</form>
</div>
{/block}
{block name="javascript"}
<script type="text/javascript">
$(function() {
  $("#restore").click(function(){
      window.location.href = "{:url('admin/lang/index',['act'=>'restore'])}";
  })
})
</script>
{/block}
